Fix recently introduced bool vector overrun.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2013 06:46:59 +0000 (22:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2013 06:46:59 +0000 (22:46 -0800)
commit0edf099408d1dc50216b46b9472a1e23139d2128
tree95ac20a057a75240487efab2b71b3f5924eba708
parent8a4a2d0f31f94c3be18a79867a62314f3f00a571
Fix recently introduced bool vector overrun.

This was due to an optimization that went awry.
Reported by Glenn Morris in
<http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00622.html>.
* alloc.c (make_uninit_bool_vector): Don't allocate a dummy word
for empty vectors, undoing the 2013-11-18 change.
* data.c (bool_vector_binop_driver): Rely on this.
Fix bug that occasionally overran the destination.
* lisp.h (struct Lisp_Bool_vector): Document this.
src/ChangeLog
src/alloc.c
src/data.c
src/lisp.h